<?php
class PNLayer extends PNObject {
  function PNLayer($init=null, $where='')
  {
    $this->PNObject();

    $this->_objType       = 'votemember_layer';
    $this->_objField      = 'id';
    $this->_objPath       = 'form';

    $this->_init($init, $where);
  }
  
  function insertPostProcess(){
  	$ext  = FormUtil::getPassedValue ('ext', NULL , 'REQUEST');

    $this->_objData['province_access'] = serialize(explode(',', $ext['province_access']));
    $this->_objData['district_access'] = serialize(explode(',', $ext['district_access']));
    $this->_objData['tambon_access']   = serialize(explode(',', $ext['tambon_access']));
    
    return $this->_objData;
    //print_r($this->_objData); exit;
            		  	  	  	
  	//print_r($ext); exit;
  }
}